package com.blockchainenergy.info.market;

import com.blockchainenergy.common.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/info/market")
public class InfoMarketAPI {
    @Resource
    private InfoMarketService infoMarketService;

    @GetMapping("/get")
    public Result get() {
        return Result.success(InfoMarket.get());
    }

    @GetMapping("/add")
    public Result add() {
        InfoMarket.add(1, 1, 1, 1, 1);
        return Result.success(InfoMarket.get());
    }
}
